]}{}
\rotate[rotation=90]{\externalfigure[dummy]}{}
{\externalfigure[dummy][]}{}
\stopcombination}
}
\flushlayer[test3]
\page
%%% Wolfgang %%%
\centerbox
{\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]
\bTR
\bTD
\externalfigure[dummy]
\eTD
\bTD
\rotate[rotation=90]{\externalfigure[dummy
gt; > >
> > > \useMPlibrary [dum]
> > >
> > > \starttext
> > >
> > > \definelayer[test3]
> > >
> > > \setlayer[test3][x=2cm,y=15cm]
> > >
> > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location
text
> >
> > \definelayer[test3]
> >
> > \setlayer[test3][x=2cm,y=15cm]
> >
> > {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]
> >
> > {\externalfigure[dummy]}{}
> >
> > \rotate[rotation=90]{\externalfigure[dumm
]}{}
{\externalfigure[dummy][]}{}
\stopcombination}
\flushlayer[test3]
\stoptext
\useMPlibrary [dum]
\showframe [text] [text]
\setuplayout [tight]
\starttext
\centerbox
{\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]
\bTR
\bTD
\externalfigure[dummy
,
]
\useMPlibrary [dum]
\starttext
\definelayer[test3]
\setlayer[test3][x=2cm,y=15cm]
{\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]
{\externalfigure[dummy]}{}
\rotate[rotation=90]{\externalfigure[dummy]}{}
{\externalfigure[dummy][]}{}
\stopcombination}
\flushlayer[test3
should define a layer that covers the whole page,
> since the following MWE is wrong (the layer always starts below the
> first line):
Hi Hraban,
slightly modifying your MWE, I think I get what might fit your needs
(see below).
I never used \flushlayer and your sample shows that it doesn’t fit h
Hi Willi,
thank you, I wasn’t aware that \flushlayer works this way. This was also
the problem in my real project.
And I had the wrong layer mentioned in \setupbackgrounds from another test.
Also, cropoffset was interfering in the real project, see my other mail.
Hraban
Am 16.04.22 um 22:27
> \setlayerframed[papier][
> preset=lefttop,
> %x=-\measure{Bleed},
> %y=-\measure{Bleed},
> offset=overlay,
> %frame=off,
> width=\measure{MaxWidth},
> height=\measure{MaxHeight},
> ]{\externalfigure[dummy][
> width=\measure{MaxWidth},height=\measure{MaxHeight}
> ]}
=overlay,
%frame=off,
width=\measure{MaxWidth},
height=\measure{MaxHeight},
]{\externalfigure[dummy][
width=\measure{MaxWidth},height=\measure{MaxHeight}
]}
\flushlayer[papier]
\stoptext
___
If your question
Latest LMTX. I noticed the following \flushlayer behaviour and wondered if it
was a bug or something I've misunderstood?
\showframe
\setuppapersize [A5][A5]
\setuplayout[marking=on, location=middle]
\definelayer[coverlayer]
[width=\paperwidth, height=\paperheight]
\setupbackgrounds [paper
ox
> {\setlayer
> [TextBox]
> [x=\the\dimexpr(\textwidth -\nextboxwd)/3\relax,
> y=\the\dimexpr(\textheight-\nextboxht)/3\relax]
> {\flushnextbox}}
> \hbox{\framed[width=300pt,align=normal]{\samplefile{ward}}}
>
> \flushlayer[TextBox]
>
> \s
the width is
> \the\wd\scratchbox.
> \unvbox\scratchbox
>
> \setlayerframed[LAY][x=0pt, y=20pt][width=300pt, align=flushleft]{\input
> ward\relax}
> \flushlayer[LAY]
>
> \stoptext
>
> Aditya
Yes, that's essentially the same method I used, but I must have done a
mi
{\framed[width=300pt,align=normal]{\samplefile{ward}}}
\flushlayer[TextBox]
\stoptext
Now to your proposal, Wolfgang:
\starttexdefinition NextboxDimension
\starttabulate
\NC Width \EQ \the\nextboxwd \NC\NR
\NC Height \NC \the\nextboxht \NC\NR
\stoptabulate
\stoptexdefinition
\startte
=on,
width=300pt,
align={right,}] % tolerant}]
{\input ward }
\flushlayer[LAY]
\stoptext
Now, it could have a favourable effect on designing a page if the height of a
text
of certain width could be calculated in advance, depending of the font.
Is there a way?
As I fear, TeX's means
ed[LAY]
>[x=0pt,y=20pt]
>[frame=on,
> width=300pt,
> align={right,}] % tolerant}]
>{\input ward }
> \flushlayer[LAY]
> \stoptext
>
>
> Now, it could have a favourable effect on designing a page if the height of a text
> of certain
\setlayerframed[LAY]
> >[x=0pt,y=20pt]
> >[frame=on,
> > width=300pt,
> > align={right,}] % tolerant}]
> >{\input ward }
> > \flushlayer[LAY]
> > \stoptext
> >
> >
> > Now, it could have a favourable effect on des
Rudolf Bahr schrieb am 24.03.2020 um 12:19:
Hello dear All,
the following MWE works best:
\definelayer[LAY]
\starttext
\setlayerframed[LAY]
[x=0pt,y=20pt]
[frame=on,
width=300pt,
align={right,}] % tolerant}]
{\input ward }
\flushlayer[LAY]
\stoptext
Now, it could
Hello dear All,
the following MWE works best:
\definelayer[LAY]
\starttext
\setlayerframed[LAY]
[x=0pt,y=20pt]
[frame=on,
width=300pt,
align={right,}] % tolerant}]
{\input ward }
\flushlayer[LAY]
\stoptext
Now, it could have a favourable effect on designing a page
llonius.103][width=2.0in]}
\switchtobodyfont[nameface]
\setlayer[tblplacecard][x=10em,y=3.0em]%
{\tfg\it\color[orangered]{Vidya}}
\flushlayer[tblplacecard]
\stopbuffer
\starttext
\setupcolors[state=start]
%%% 1. Show the frame and layout information.
\showfram
foregroundstyle={\definedfont[Serif at 82pt]}]
> {JOURNEY}
>
> \setlayerframed
> [LAY]
> [x=360pt,
> y=50pt]
> [frame=off,
> width=200pt,
> align={normal,tolerant}]
> {\input ward
> \blank[line]
> \externalfigure[hacker][he
[hacker][height=.4\textheight]}
\flushlayer[LAY]
\stopbuffer
\getbuffer
\page
\setuplayer[LAY][hoffset=4cm,voffset=-2cm]
\getbuffer
\stoptext
Wolfgang
___
If your question is of interest to others as well, please
[height=.4\textheight]%
}
}
\flushlayer[LAY]
\page
\definelayer[LAY]%
\setlayer[LAY][x=0pt,y=0pt]%
{\externalfigure[mill][height=.4\textheight]}
\setlayer[LAY][x=150pt,y=0pt]%
{\externalfigure[hacker][height=.4\textheight]}
\setlayer[LAY][x=0pt,y=200pt]%
{\externalfigure[co
On 12/17/2019 7:18 PM, Rudolf Bahr wrote:
Hi Hans,
assume we fixed between "\definelayer" and "\flushlayer" a whole ensemble
of layers on a page. And by calculating per luacode we determined the leftmost
and the rightmost edge of the ensemble and would now like to
Hi Hans,
assume we fixed between "\definelayer" and "\flushlayer" a whole ensemble
of layers on a page. And by calculating per luacode we determined the leftmost
and the rightmost edge of the ensemble and would now like to horizontally centre
the ensemble. We don't know the r
\setupwhitespace[line] % A line's spacing between paragraphs.
\starttext
\definetextbackground[InfoText][
location=paragraph, frame=on]
\definelayer[testlayer]
\setlayer[testlayer][x=1cm,y=3cm]{%
\startInfoText
\stopInfoText
}
\flushlayer[testlayer]
\stoptext
Doesn’t work. Only works
command in
> separate arguments.
>
> 4. I got rid of the backgrounds setup for the layer. A better solution here
> is to create a page without margins which can be done with the "page" layout
> where you flush the collected content of the layer with the \
ackgrounds setup for the layer. A better solution
here is to create a page without margins which can be done with the
"page" layout where you flush the collected content of the layer with
the \flushlayer command.
5. I set the texts for the isse number and title with the \setvari
][corner={left,bottom},location={right,top}]{LB 1}
\setlayer[test][corner={right,bottom},location={left,top}]{RB 1}
\flushlayer[test]
\setlayer[test][preset=lefttop]{LT 2}
\setlayer[test][preset=righttop]{RT 2}
\setlayer[test][preset=leftbottom]{LB 2}
\setlayer[test][preset=rightbottom]{RB 2
}
\setlayer[test][corner={left,bottom},location={right,top}]{LB 1}
\setlayer[test][corner={right,bottom},location={left,top}]{RB 1}
\flushlayer[test]
\setlayer[test][preset=lefttop]{LT 2}
\setlayer[test][preset=righttop]{RT 2}
\setlayer[test][preset=leftbottom]{LB 2}
\setlayer[test
:\rightorleftpageaction rl]
[]
[width=\marginwidth,
align={lohi,middle},
foregroundstyle=\tx]
{\floatuserdataparameter{text}}
\flushlayer
[extrafiguretextlayer:\rightorleftpageaction rl]
\stopsetups
\defineoverlay
Dear Wolfgang,
I read your detailed explanation about the difference between overlay and
layer.
Here is your sample code using layer.
\starttext
\definelayer[test]
\setlayer[test][x=3cm,y=6cm]{ONE}
\setlayer[test][x=8cm,y=2cm]{TWO}
\setlayer[test][x=2cm,y=9cm]{THREE}
\flushlayer[test
=2cm]{TWO}
\setlayer[test][x=2cm,y=9cm]{THREE}
\flushlayer[test]
\stoptext
It shows ONE, TWO, and THREE in the same page.
I'd like to show each word one by one when I click, so I tested the following
code.
\setupinteraction[state=start]
\usemodule[pre-60]
\starttext
\definelayer
we are about to place:
\composedlayer{x} is syntactic sugar for \flushlayer[x]. (Braces vs.
brackets.)
So it seems that what \tightlayer does is create a layer object
exactly as large as its contents? What this is good for, and how it
relates to overlays, I do not know.
Good luck!
--Sietse
centered in the
frame but with layers you can put the content from each command at a certain
horizontal and vertical position.
In the following example I created a new layer and set three texts for it which
are afterwards placed in the page which the \flushlayer command.
\starttext
\definelayer[test
the content of each layer was always centered in the
frame but with layers you can put the content from each command at a certain
horizontal and vertical position.
In the following example I created a new layer and set three texts for it which
are afterwards placed in the page which the \flushlayer
which the \flushlayer command.
\starttext
\definelayer[test]
\setlayer[test][x=3cm,y=6cm]{ONE}
\setlayer[test][x=8cm,y=2cm]{TWO}
\setlayer[test][x=2cm,y=9cm]{THREE}
\flushlayer[test]
\stoptext
When you put new some text after \flushlayer would be surprised because it
would end put
Am 16.07.2011 um 19:35 schrieb Marcin Borkowski:
Anybody help, please...?
Layers are objects which can be placed on any place of the page.
The difference between \setupbackgrounds and \flushlayer can be
seen in the example below. With \setupbackground the layer content
is put on the requested
. (And I have
no idea what \flushlayer does in this conceptual framework.) So
layers are actually kind of beneath ordinary page contents.
Some of these commands (which ones?) should moreover be placed before
\startext.
OK, so where am I right and where am I wrong now?
Best
--
Marcin
what \flushlayer does in this conceptual framework.) So
layers are actually kind of beneath ordinary page contents.
Some of these commands (which ones?) should moreover be placed before
\startext.
OK, so where am I right and where am I wrong now?
Best
--
Marcin Borkowski
-
setups trickery if they are going to change from page to page), and
they are actually put on the page by \setupbackgrounds. (And I have
no idea what \flushlayer does in this conceptual framework.) So
layers are actually kind of beneath ordinary page contents.
Some of these commands (which ones
]
\setlayer[title]{This is the title.}
\stoptext
(I'd also like to be able to anchor the title so that (105mm,20mm) are
the coordinates of the center, not the lower-left corner etc. How to do
that?)
\flushlayer[title]
etc (some styles in the distributions have examples)
Hans
that
(105mm,20mm) are the coordinates of the center, not the lower-left
corner etc. How to do that?)
\flushlayer[title]
Thanks too; but again, what does this do exactly?
(Sorry for asking dumb questions, but I'd like to understand the
underlying mechanism, not only learn how to use it...)
--
Marcin
, not the lower-left
corner etc. How to do that?)
\flushlayer[title]
etc (some styles in the distributions have examples)
I think that the general problem is that I have a wrong conceptual model
of layers in ConTeXt. You know, when I hear the word layer, I have
some ideas about how it should/could
in front of text
\flushlayer[foo]
\stoptext
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage
must be set
%\setupwhitespace[small]%
\startSomePar
Speichern des\endgraf aktuellen Designs
\SomePar
Löschen (!)\endgraf der aktuellen\endgraf Designvorlage
\stopSomePar
%\stoplocal
\stopbuffer
\definelayer[FOO]
\setlayer[FOO]{\getbuffer[FOO]}
\flushlayer[FOO]
\stoptext
=FOO,frame=off]
{\startoverprint first one\stopoverprint}}
\setlayer[BAR][x=50mm,y=45mm]
{\framed[background=FOO,frame=off]
{\startoverprint second one\stopoverprint}}
\flushlayer[BAR]
\stoptext
ovp.pdf
Description: Adobe PDF document
=figure]
\setuppagenumbering[location={footer,right}]
\usetypescript[palatino]
\setupbodyfont[palatino,14pt]
\starttext
\startbuffer[zapf]
\input zapf
\stopbuffer
\startbuffer[hawking]
\input hawking
\stopbuffer
\flushlayer[figure]
\startsetups figure
\setlayerframed[figure][frame=off,x=25mm,y=43mm
=middle]{Hello world!}
\stoptext
---
Any ideas?
\flushlayer{mylayer}
or
\setupbackgrounds[text|page|...][background=mylayer]
Wolfgang
___
If your question is of interest to others as well, please add an entry
}
\flushlayer[mylayer]
\stoptext
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http
, maybe
it's just another way of calling the OTR -- see below)
\flushlayer[mylayer]
You have to invoke the OTR.
OTR = Output Routine
Without invoking the OTR nothing is generated.
(but you can leave out \starttext \stoptext -- why?)
You could use
\startstandardmakeup
\stopstandardmakeup
,height=1cm]%
{Clipping some layer text}}
%\flushlayer[stack]
\setbox\scratchbox\hbox{The cat was too long to fit in this small sentence.}
\framed[offset=overlay]{\clip[hoffset=0pt,voffset=0pt,width=110pt,height=15pt]{\box\scratchbox}}
\stoptext
the second clip uses the width value
\definelayer[stack]
\setlayer[stack][x=0pt,y=0pt]{%
\clip[hoffset=0pt,voffset=0pt,width=20cm,height=1cm]%
{Clipping some layer text}}
%\flushlayer[stack]
\setbox\scratchbox\hbox{The cat was too long to fit in this small sentence.}
\framed[offset=overlay]{\clip[hoffset=0pt,voffset=0pt,width
hi,
this time fully 'context live' approved, only with natural ingredients
and even more tasty. yummy yum :D
% engine=luatex
\starttext
\definelayer[stack]
\setlayer[stack][x=0pt,y=0pt]{%
\clip[hoffset=0pt,voffset=0pt,width=20cm,height=1cm]%
{Clipping some layer text}}
%\flushlayer[stack
# \FLOWchart
# \flushcollector
# \flushlayer
# \flushXMLelement
\followprofile{text}[text]
\followprofileversion{text}[text][text]
\followversion{text}[text]
\footnote[reference]{text}
\footnotetext[reference]{text}
\forceblocks[names][names]
# \forgetall
# \FR
\fraction{text}{text}
\framed[settings]{text
[mp]{\reuseMPgraphic{axis}}
\setlayer[mp]{\useMPgraphic{one}}
\ruledhbox{\flushlayer[mp]}
\startuseMPgraphic{two}
drawpoint 1.5cm,2.0cm ;
\stopuseMPgraphic
\definelayer[mp][preset=mp]
\setlayer[mp]{\reuseMPgraphic{axis}}
\setlayer[mp]{\useMPgraphic{two}}
\ruledhbox{\flushlayer[mp]}
\definelayer
\startstandardmakeup
\setlayer[text][location=grid,line=10]{test}
\setlayer[text][location=grid,line=10,x=10cm]{test}
\flushlayer[text]
\stopstandardmakeup
-
Hans Hagen | PRAGMA ADE
\starttext
\startstandardmakeup
\setlayer[text][location=grid,line=10]{test}
\setlayer[text][location=grid,line=10,x=10cm]{test}
\flushlayer[text]
\stopstandardmakeup
%% add this line
\stoptext % :-)
luigi
___
ntg-context mailing list
ntg-context
[achtergrond][x=0in,y=0in]{\externalfigure[stationary-1.pdf]}
An option is to use the logo features but since layers are more fun i
will probably turn that into an optional module some day (is anyone
using it?)
put this in cont-new.tex:
\unprotect
\unexpanded\def\flushlayer[#1]%
{\doifelsevalue{\??ll#1
:
\unprotect
\unexpanded\def\flushlayer[#1]%
{\doifelsevalue{\??ll#1\c!state}\v!next
{\global\letvalue{\??ll#1\c!state}\v!start} % dangerous, stack-built-up
{\doifelsevalue{\??ll#1\c!state}\v!continue
{\global\letvalue{\??ll#1\c!state}\v!repeat} % dangerous, stack-built-up
whenever you want,
\flushlayer \composedlayer \tightlayer
also, peek into core-box.tex: collectors and such)
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt
][width=6cm,align=normal]{\getbuffer[b]}
\startstandardmakeup\flushlayer[page]\stopstandardmakeup
\stoptext
an other alternative is columnsets (see columns.pdf)
-
Hans Hagen | PRAGMA ADE
61 matches
Mail list logo